home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EuroCD 3
/
EuroCD 3.iso
/
Rexx
/
FW2STFax.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-06-24
|
972b
|
61 lines
/*
$VER: FW2STFax.rexx 1.0 (06.05.97)
by Simone Tellini with the help of Achim Klopsch
*/
/* Switch Off TurboPrint before Fax */
/* Uncomment this line if you use TP */
/* Address command 'turboprint:noturbo' */
/* Read Density */
'GetGfxPrintPrefs Density'
prefs = result
initiation = run "STFax:STFax"
IF ~show('P','STFAX.1') THEN DO
/* If STFAX was not started */
ADDRESS COMMAND initiation
ADDRESS COMMAND "SYS:RexxC/WaitForPort STFAX.1"
END
'GFXPRINTPREFS Density 7'
/* this command sets the paper feed to continuous */
'PRINTSETUP FEED CONTINUOUS PAGES ALL'
ADDRESS 'STFAX.1' 'PRTDRIVER ON'
CALL ToCover
'PRINT'
'GFXPRINTPREFS density' prefs
ADDRESS 'STFAX.1' 'PRTDRIVER OFF'
EXIT
ToCover:
OPTIONS Results
GETSECTIONLIST
list = Result
IF INDEX(list,"Fax_Cover")=0 THEN NOP
ELSE
DO
GOTOSECTION Fax_Cover
MOVETOLINE 1 0
UPDATEDATE
UPDATETIME
END
RETURN